feat: expose native extension features to Shen Batteries - #61
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Seed the Shen Batteries feature registry after boot from native extension backends so
(shen.x.features.current)reflects host capabilities (e.g.shen.x/sha256-host) instead of failing because the registry was unbound.The community
features.initialisepath also hooksshen.set-lambda-form-entry, which is not present in the refreshed 41.2 kernel. This port seedsshen.x.features.*features*directly from backend globals (shen.x.*sha256-backend*,shen.x.*zmq-backend*). Ports without a host backend (includingSHEN_X_SHA256=pure) advertise no host capability.Adds
test/features_spec.luaand includes it in the port suite.Cherry-picked onto
mainafter the Yggdrasil rename (PR #60). Does not include the rename commit.Commits
d31304ffeat: expose native extension features to Shen Batteries (boot.lua,test/features_spec.lua)f1dbd98test: include feature bridge spec in port suite (scripts/run-tests.lua)Test plan
luajit test/features_spec.lua— 3 pass, 0 fail